package com.tfjybj.itoo.exam.provider.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tfjybj.itoo.exam.entity.ChangeQuestionEntity;
import com.tfjybj.itoo.exam.model.ChangeQuestionModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ChangeQuestionDao接口
 * changeQuestion表
 *
 * @author 贾建清
 * @version 2.0.0
 * @since 2.0.0 2018-12-30 09:44:46
 */
@Repository("changeQuestionDao")
public interface ChangeQuestionDao extends BaseMapper<ChangeQuestionEntity> {

    List<ChangeQuestionModel> queryChangeQuestionByLikeContent(@Param("content") String content, @Param("operator") String operator);

    /**
     * 将当前考试抽到错题的考生插入到表中
     *
     * @param changeQuestionModel 单个考生的
     * @return 布尔值
     */
    boolean insertExamineeForWrongQuestion(ChangeQuestionModel changeQuestionModel);
}
